/**
 * @describe 全局事件注册
 * @author 游金宇(KM)
 * @date 2023-08-30 13:41:39
 */

import { game, log, director, Game, sys } from 'cc';


import { cat } from '@shimotsuki/core';


cat.onAppInitDelegate.add(() => {
    // 游戏显示事件
    game.on(Game.EVENT_SHOW, () => {
        log('Game.EVENT_SHOW');
    });

    // 游戏隐藏事件
    game.on(Game.EVENT_HIDE, () => {
        log('Game.EVENT_HIDE');
    });

    // 游戏关闭事件
    game.on(Game.EVENT_CLOSE, () => {
        log('Game.EVENT_CLOSE');
    });
})

